<?php 
if(!empty($model->title))
$this->breadcrumbs=array(
	'Đơn vị tổ chức'=>array('index'),
	$model->title,
);
if(!empty($model->title))
	echo '<h1><strong>'.$model->title.'<strong></h1><br>';
 ?>
 <ul style="float:right;padding-right:5px;margin-top:-60px">
<li class="btn-group">
 <button type="button" class="btn blue dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">
 <span>Actions</span> <i class="icon-angle-down"></i>
 </button>
 <ul class="dropdown-menu pull-right" role="menu">
     <li><?php echo CHtml::link('Chỉnh sửa',array('organizers/update','id'=>$model->id),array('class'=>'btn green','style'=>'margin-top: 3px;width: 100%;')); ?></li>
    <li><?php echo CHtml::link('Tạo mới',array('organizers/create'),array('class'=>'btn yellow','style'=>'margin-top: 3px;margin-bottom: 3px;width: 100%;')); ?></li>
    
 </ul>
</li>
</ul>
<!-- end button -->
 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Thông tin chung</div>
	</div>
	<div class="portlet-body">
	 <table class="table table-bordered table-hover">
	    <thead>
	       <tr>
	          <th>Tên đầy đủ</th>
	          <th>Phone</th>
	          <th>AltPhone</th>
	          <th>Fax</th>
	          <th>Email</th>
	          <th>Website</th>
	       </tr>
	    </thead>
	    <tbody>
	       <tr>
	          <td><?php  if(!empty($model->title)){ echo $model->title ; } ?></td>
	          <td><?php  if(!empty($model->phone)){ echo $model->phone; } ?></td>
	          <td><?php  if(!empty($model->altphone)){ echo $model->altphone; } ?></td>
	          <td><?php  if(!empty($model->fax)){ echo $model->fax ; } ?></td>
	          <td><?php  if(!empty($model->email)){ echo $model->email; } ?></td>
	          <td><?php  if(!empty($model->website)){ echo '<a href="'.$model->website.'" target="_blank">'.$model->website.'</a>';  } ?></td>
	       </tr>
	    </tbody>
	 </table>
	</div>
</div>

 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Thông tin địa chỉ</div>
	</div>
	<div class="portlet-body">
	 <table class="table table-bordered table-hover">
	    <thead>
	       <tr>
	          <th>Địa chỉ</th>
	          <th>Quận</th>
	          <th>Huyện</th>
	          <th>Thành phố</th>
	          <th>Đất nước</th> 
	       </tr>
	    </thead>
	    <tbody>
	       <tr>
	          <td><?php  if(!empty($model->address)){ echo $model->address ; } ?></td>
	          <td><?php  if(!empty($model->ward)){ echo $model->ward; } ?></td>
	          <td><?php  if(!empty($model->district)){ echo $model->district; } ?></td>
	          <td><?php  if(!empty($model->city)){ echo $model->city ; } ?></td>
	          <td><?php  if(!empty($model->country)){ echo $model->country; } ?></td> 
	       </tr>
	    </tbody>
	 </table>
	</div>
</div>


 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Thông tin mạng xã hội</div>
	</div>
	<div class="portlet-body">
	 <table class="table table-bordered table-hover">
	    <thead>
	       <tr>
	          <th>Mãng xã hội</th>
	          <th>Đường dẫn</th>
	       </tr>
	    </thead>
	    <tbody>
	       
	       	<?php foreach ($social as $key => $value) { ?>
	       	<tr>
	       		<?php  if(!empty($value->social_id)){ $nameSocial = SocialNetworking::model()->findByPk($value->social_id); } ?>	
	       		<td><?php echo $nameSocial->title ?></td>
	       		<td><a href="<?php echo $value->url; ?>" target="_blank"><?php echo $value->url; ?></a></td>
	       	</tr>
	      	<? 	} ?>
	       
	    </tbody>
	 </table>
	</div>
</div>

 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Nội Dung</div>
	</div>
	<div class="portlet-body">
		<h2 style="text-decoration: underline;font-style: italic;">Giới thiệu</h2>
		<p><?php if(!empty($model->brief)) echo $model->brief ; ?></p>
		<h2 style="text-decoration: underline;font-style: italic;">Nội Dung</h2>
		<p><?php if(!empty($profile->description)) echo nl2br($profile->description); ?>
	</div>
</div>
<div class="row">
	<div class="col-xs-12">
	 <div class="portlet box green">
		<div class="portlet-title">
		 <div class="caption"><i class="icon-cogs"></i>Ảnh đại diện</div>
		</div>
			<div >
		        <div class="thumbnail">
		          <img style="width:100%" src="<?php echo IMAGES_URL . 'organizers/' . $model->image; ?>" alt="<?php echo $model->title; ?>" style="" />
		        </div>
		      </div> 
	</div>
  </div>
</div>	